import {format} from "date-fns";


function formatDate(date, dateFormat = 'yyyy-MM-dd HH:mm:ss') {
    return format(new Date(date), dateFormat);
}

export default {
    formatDate
}